﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RendicionDepositoGrid.ascx.cs" 
Inherits="UILGestion.ObraAdmin.RendicionCaja.RendicionDepositoGrid" %>
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<input id="idParent" type="hidden"  runat="server"/>
<input id="idEstado" type="hidden"  runat="server"/>
<input id="idObra" type="hidden"  runat="server"/>
<asp:GridView ID="itemGridView" runat="server" 
                              AutoGenerateColumns="False" 
                              CellPadding="4" DataKeyNames="idInternal"  
                              SkinID="GridView"
                              ShowFooter="true">
                              <Columns>
                                  <asp:TemplateField HeaderText="FECHA" HeaderStyle-Width="125px">
                                      <ItemTemplate>
                                          <asp:Label ID="fechalbl" runat="server" Text='<%# Eval("fechaStr")%>'></asp:Label>
                                       </ItemTemplate>
                                       <EditItemTemplate>
                                           <asp:TextBox ID="fechaTxt" runat="server" Text='<%# Eval("fechaStr")%>' Width="95px" />
                                           <asp:ImageButton ID="ImageButton1" runat="Server" 
                                              AlternateText="Click aqui para mostrar calendario" font-names="Arial" 
                                              Font-Size="X-Small" ImageUrl="~/Images/month.gif"  />
                                              <asp:CalendarExtender ID="CalendarExtender2" runat="server"     
                                                     TargetControlID="fechaTxt"
                                                       PopupButtonID="ImageButton1"></asp:CalendarExtender>
                                      </EditItemTemplate>
                                      <FooterTemplate>
                                          <asp:TextBox ID="fechaTxt" runat="server"  Width="95px" />
                                           <asp:ImageButton ID="ImageButton1" runat="Server" 
                                              AlternateText="Click aqui para mostrar calendario" font-names="Arial" 
                                              Font-Size="X-Small" ImageUrl="~/Images/month.gif"  />
                                              <asp:CalendarExtender ID="CalendarExtender2" runat="server"     
                                                     TargetControlID="fechaTxt"
                                                       PopupButtonID="ImageButton1"></asp:CalendarExtender>
                                      </FooterTemplate>
                                     
                                  </asp:TemplateField>
                                  <asp:TemplateField HeaderText="FORMA ENTREGA" HeaderStyle-Width="200px">
                                      <ItemTemplate>
                                          <asp:Label ID="formaEntregalbl" runat="server" Text='<%# Eval("tipoEntregaStr")%>'></asp:Label>
                                       </ItemTemplate>
                                         <EditItemTemplate>
                                             <asp:DropDownList ID="formaEntregaDDL" runat="server"  Width="100%"  />
                                            
                                      </EditItemTemplate>

                                      <FooterTemplate>
                                      <asp:DropDownList ID="formaEntregaDDL" runat="server"  Width="100%"  />
                                          
                                      </FooterTemplate>
                                     
                                  </asp:TemplateField>
                                  <asp:TemplateField HeaderText="Nro DOC" HeaderStyle-Width="150px">
                                      <ItemTemplate>
                                          <asp:Label ID="nroDocumentolbl" runat="server" Text='<%# Eval("numdocumento")%>'></asp:Label>
                                       </ItemTemplate>
                                        <EditItemTemplate>
                                           <cc1:Input ID="nroDocumentoTxt" runat="server" Text='<%# Eval("numdocumento")%>' Width="100%"  />

                                      </EditItemTemplate>

                                      <FooterTemplate>
                                          <cc1:Input ID="nroDocumentoTxt" runat="server" Width="100%"></cc1:Input>
                                          
                                      </FooterTemplate>
                                     
                                  </asp:TemplateField>
                                

                                   <asp:TemplateField HeaderText="TOTAL" HeaderStyle-Width="95px" ItemStyle-HorizontalAlign="Right">
                                      <ItemTemplate>
                                          <asp:Label ID="totalDbl" runat="server" Text='<%# Eval("total")%>'></asp:Label>
                                       </ItemTemplate>
                                     <EditItemTemplate>
                                           <cc1:Input ID="totalTxt" runat="server"  DataType="Double" Text='<%# Eval("total")%>' Width="100%" />

                                      </EditItemTemplate>

                                      <FooterTemplate>
                                            <cc1:Input ID="totalTxt" runat="server"  DataType="Double"  Width="100%" />
                                      </FooterTemplate>
                                     
                                  </asp:TemplateField>
                              
                                  <asp:TemplateField>
                                      <ItemTemplate>

                                        
                                          <asp:ImageButton ID="lnkRemove" runat="server" BorderColor="Control" 
                                              CommandArgument='<%# Eval("idInternal")%>' ImageUrl="~/Images/delete.gif" 
                                              OnClick="DeleteItem" OnClientClick="return confirm('Usted quiere eliminar?')" />
                                       </ItemTemplate>
                                      <FooterTemplate>

                                       <%-- <asp:ImageButton ID="nuevoGrupoBtn" runat="server" BorderColor="Control" 
                                          CommandArgument="<%# Container.DataItemIndex %>" 
                                         CommandName='<%# Eval("idInternal") %>' 
                                          ImageUrl="../Images/adicionPre.gif" 
                                          />
                                         
                                      <asp:ImageButton ID="nuevosRecursosButton" runat="server" BorderColor="Control" 
                                              CommandArgument="<%# Container.DataItemIndex %>" 
                                         CommandName='<%# Eval("idInternal") %>' 
                                         ImageUrl="../Images/img_status_stopped.png" 
                                            />--%>
                                          <asp:Button ID="btnAdd" runat="server"   OnClick="AddItem" 
                                              Text="Añadir" />
                                        
                                      </FooterTemplate>
                                  </asp:TemplateField>
                              </Columns>
                              </asp:GridView>
